{% load i18n posttags menu links themes config %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>{%block title%}{% trans 'site-title' %}{%endblock%}</title>
{%block meta %}
<meta name="keywords" content="{% trans 'meta-kewords' %}"/>
<meta name="description" content="{% trans 'meta-desc' %}"/>
{%endblock%}
{% block script %}
<script type="text/javascript" src="{%media_url%}/js/highslide.packed.js"></script>
<script type="text/javascript" src="{%media_url%}/js/shCore.js"></script>
<script type="text/javascript" src="{%media_url%}/js/common.js"></script>
<script type="text/javascript" src="{%media_url%}/js/shBrushes.js"></script>
{% endblock %}
<link rel="stylesheet" href="{%media_url%}/css/SyntaxHighlighter.css" type="text/css" media="screen" >
<link rel="stylesheet" href="{% theme_media_url %}/css/style.css" type="text/css" media="screen">
<link rel="stylesheet" href="{%media_url%}/css/code.css" type="text/css" media="screen" >
<link rel="stylesheet" href="{%media_url%}/css/highslide.css" type="text/css" media="screen">
<link rel="alternate" type="application/rss+xml" title="订阅 Peigen Rss Feed" href='{% url feeds url="rss" %}'>
<link rel="alternate" type="application/rss+xml" title="订阅 Peigen Atom Feed" href='{% url feeds url="atom" %}'>

</head>
<body>
<div id="wrapper">

<div id="topbar">
<div id="topbarright">
    <div id="topsearch">
        <!-- SiteSearch Google -->
        <form method="get" action="http://www.google.cn/custom" target="google_window">
            <table border="0" bgcolor="#ffffff">
                <tr>
                    <td nowrap="nowrap" valign="top" align="left" height="8"></td>
                    <td nowrap="nowrap">
                        <input type="hidden" name="domains" value="peigen.info"></input>
                        <label for="sbi" style="display: none">输入您的搜索字词</label>
                        <input type="text" name="q" maxlength="255" value="Search..." id="sbi" onfocus="if (this.value == 'Search...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search...';}" class="swap_value" />
                    </td>
                    <td nowrap="nowrap">
                        <input type="hidden" name="client" value="pub-3055576944788946"></input>
                        <input type="hidden" name="forid" value="1"></input>
                        <input type="hidden" name="channel" value="4575717552"></input>
                        <input type="hidden" name="ie" value="UTF-8"></input>
                        <input type="hidden" name="oe" value="UTF-8"></input>
                        <input type="hidden" name="safe" value="active"></input>
                        <input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;LH:100;LW:75;L:http://pic.yupoo.com/peigen123/08001801f5f0/thumb.jpg;S:http://;LP:1;FORID:1"></input>
                        <input type="hidden" name="hl" value="zh-CN"></input>
                    </td>
                </tr>
            </table>
        </form>
        <!-- SiteSearch Google -->
        <ul>
			<li><a href="/admin/blog/">{%if user.is_authenticated%}Admin{%else%}Login{%endif%}</a></li>
		</ul>
    </div>
    <div id="topsearch">
		
    </div>
</div>
<div id="topbarleft">
    <div id="navigation">
        {% get_menus %}        
    </div>
</div>

</div>

<div id="header"><h1><a href='/'>{% trans 'site-title'%}</a></h1></div>
{% block recent %}{% endblock %}
<div id="main">
    <div class="entry">
        <!--Start of prompt-->
        {% if msg %}
        <div class="message">{{msg}}</div>
        {% endif %}
         {% if error %}
        <div class="message error">{{error}}</div>
        {% endif %}
        <!--End of prompt--> 
		{% block content %}
		{% endblock %}
    </div>
<!--start of sidebar-->
<div id="sidebar">
    {% block sidebar %}
    <div id="subscribe">
		<!-- Feedburner FEED 订阅统计发布代码开始 -->
		<a href="http://feeds.feedburner.com/peigen" title="Peigen废话 by feedburner" target="_blank"><img src="http://feeds.feedburner.com/~fc/peigen?bg=99CCFF&amp;fg=444444&amp;anim=0" height="26" width="88" style="border:0" alt="" /></a>
		<!-- Feedburner FEED 订阅统计发布代码开始 -->
		<!-- Feedsky FEED 订阅统计发布代码开始 -->
		<a href="http://feed.feedsky.com/peigen" title="Peigen废话 by feedsky" target="_blank"><img src="http://www.feedsky.com/feed/peigen/sc/orange_e.gif" style="border:0" alt="" /></a>
		<!-- Feedsky FEED 订阅统计发布代码结束 -->
    </div>
    <div id="sidebar1">
        <ul>	
            <li>
            <h2>{% trans "Categories" %}</h2>
            {% get_categories %}          
            </li>      	
            <li>
            <h2>{% trans "Archives" %}</h2>
               {% get_archivelist %}
            </li>
        </ul>
    </div>
    <div id="sidebar2">
	<ul>
		<li><a href="http://fsfe.org/campaigns/valentine-2010/valentine-2010.html"><img src="http://fsfe.org/campaigns/valentine-2010/vd-i-love-fs-trans-150x90.png" style="border: 0 !important;" alt="I love Free Software!"></a></li>
	</ul>
    <ul>
		<li>
			<ul>
				<li>Peigen on Twitter</li>
				<li>
					<div style="height:450px;width:235px;"><a href="http://static.grazr.com/gzpanel.html?view=o&theme=home_silver&font=Verdana&fontsize=12pt&file=http://twitter.com/statuses/user_timeline/18597122.rss" ><img alt="Grazr" src="http://static.grazr.com/images/grazrbadge.png" style="border:none"></a><script defer="defer" type="text/javascript" src="http://static.grazr.com/gzloader.js?view=o&amp;theme=home_silver&amp;font=Verdana&amp;fontsize=12pt&amp;file=http://twitter.com/statuses/user_timeline/18597122.rss"></script></div>
                </li>
			</ul>
		</li>
        <li>
			<h2>邮件订阅</h2>
			<ul>
				<li>
					<!-- Feedsky FEED 邮件订阅 -->
					<script language="javascript" type="text/javascript" src="http://www.feedsky.com/msub_ajax_sub_js.html?burl=peigen"></script>
                </li>
                <li>
					<!-- Feedburner FEED 邮件订阅 -->
					<form style="border:1px solid #ccc;padding:3px;text-align:center;" action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=peigen', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true"><p>Enter your email address:</p><p><input type="text" style="width:80px" name="email"/></p><input type="hidden" value="peigen" name="uri"/><input type="hidden" name="loc" value="en_US"/><input type="submit" value="Subscribe" /><p>Delivered by <a href="http://feedburner.google.com" target="_blank">FeedBurner</a></p></form>
                </li>
			</ul>
        </li>
        <li>
            <h2>{% trans "Links" %}</h2>
               {% get_links %}
        </li>
        <li>
        <h2>Meta</h2>
            <ul>
				<li><a href="http://www.python.org" target="_blank"><img src="{% theme_media_url %}/images/python-powered.png" border="0" title="main program language is Python" alt="python"/></a></li>
				<li><a href="http://www.djangoproject.com" target="_blank"><img src="{% theme_media_url %}/images/djangoproject.gif" border="0" title="django web framework" alt="django"/></a></li>
				<li><a href="http://jquery.com" target="_blank"><img src="{% theme_media_url %}/images/jquery_logo.gif" title="javascript framework used jQuery" border="0" alt="jquery"/></a></li>
				<!-- 统计 -->
                <li>
                    <a href="http://s06.flagcounter.com/more/M4k"><img src="http://s06.flagcounter.com/count/M4k/bg=FFFFFF/txt=000000/border=CCCCCC/columns=2/maxflags=12/viewers=0/labels=0/" alt="free counters" />
                </li>
                <li>
					<script language="javascript" type="text/javascript" src="http://js.users.51.la/3812038.js"></script>
					<noscript><a href="http://www.51.la/?3812038" target="_blank"><img alt="&#x6211;&#x8981;&#x5566;&#x514D;&#x8D39;&#x7EDF;&#x8BA1;" src="http://img.users.51.la/3812038.asp" style="border:none" /></a></noscript>
                </li>
            </ul>
        </li>
    </ul>
    </div>
<div id="sidebar3"></div>
    {% endblock %}
</div>
<!--end of sidebar-->
</div>

<br clear="all">
<div id="footer">
Powered by <a href="http://code.google.com/p/pylogs/" style="color:#ff9900; font-weight:bold;" >Pylogs</a><sup>{% get_version %}</sup>
</div></div>
<script language="javascript">
window.onload = function(){
dp.SyntaxHighlighter.BloggerMode();
dp.SyntaxHighlighter.ClipboardSwf = '/media/js/clipboard.swf';
dp.SyntaxHighlighter.HighlightAll('code');
}
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Ff1d19b75b69803d95057a451e49185c5' type='text/javascript'%3E%3C/script%3E"));
</script>


</body></html>
